package com.rssnews.service.impl;


import com.rssnews.dao.AuthorMapper;
import com.rssnews.pojo.Author;
import com.rssnews.service.AuthorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by donglinan on 2018/6/5.
 */
@Service
public class AuthorServiceImpl implements AuthorService{

    @Autowired
    private AuthorMapper dao;
    @Override
    public void regist(Author author) {
        dao.regist(author);
    }
    @Override
    public Author login(String name, String pass) {
        return dao.login(name,pass);
    }
}
